.markdown-body {
    color: var(--text-color);
    line-height: 1.7;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
    color: var(--title-color);
}

.markdown-body h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.markdown-body h2 {
    font-size: 1.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-color);
}

.markdown-body h3 {
    font-size: 1.4rem;
}

.markdown-body p {
    margin-bottom: 1.2rem;
}

.markdown-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.markdown-body code {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
}

.markdown-body pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: rgba(236, 226, 192, 0.7);
}

.markdown-body ul,
.markdown-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.markdown-body th,
.markdown-body td {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
}

.markdown-body th {
    background-color: rgba(0, 0, 0, 0.3);
}